|
|
|
|
|
|
|
In database replication terminology, the main, or central, database is referred to as the Design Master. A copy of the Design Master is referred to as the replica. The combination of the Design Master and all replicas is referred to as the replica set. Database replication is the process of synchronizing data so that it is the same across all members of the replica set. |
|
|
|
|
|
|
|
|
Database replication is a good tool to use in the development of systems deployed across a WAN or to remote users. Replication can also be used to make copies of databases that cannot be shut down. Replication is also good for creating reporting databases. |
|
|
|
|
|
|
|
|
Do not use database replication when a centralized data storage facility can be used, such as a Web-enabled application. Also, don't use replication in heavily transaction-oriented applications, or in applications where up-to-the-minute accuracy is of paramount importance. |
|
|
|
|
|
|
|
|
Tables, fields, and properties are added to a database when it is made a Design Master. The addition of these items is necessary to track changes to data and to facilitate the synchronization between members of the replica set. These additions, however, consume additional hard drive space. |
|
|
|
|
|
|
|
|
Creating and changing the Replicable property of a database to T creates a Design Master. Once the Design Master is created, you can use the MakeReplica method to make copies of it. Finally, you use the Synchronize method to replicate data changes to members of the replica set. Data synchronization is the act of copying data changes from one member of a replica set to another. |
|
|
|
|
|
|
|
|
The Synchronize method can be used to import data changes, export data changes, perform "two-way" data changes, and even perform data exchanges over the Internet. |
|
|
|
|
|
|
|
|
Synchronization errors occur when two members of a replica set try to synchronize records that each has changed. Errors can also occur during the synchronization process when design changes are made to a database but violated by replicas prior to synchronization of the changes. Violation of referential integrity can be encountered by replicas that add records to a database that uses validation records deleted in another replica. Record locking in a multiuser environment can also cause synchronization errors. |
|
|
|
|
|
|
|
|
There are four topologies for the synchronization of replicas. These are the star, linear, ring, and fully connected topologies. The star topology is the most common, but like all the other topologies, has certain strengths and weaknesses. |
|
|
|
|
|
|
|
|
There may be times when you do not want to replicate objects contained in one database to other members of the replica set. If such is the case, use the KeepLocal method before you create the Design Master. This method keeps the object from being copied to other replica set members. |
|
|
|
|
|